package com.youlai.boot.modules.product.model;

import com.youlai.boot.modules.collect.model.vo.CollectVO;
import com.youlai.boot.modules.contact.model.ContactVO;
import com.youlai.boot.modules.merchant.model.MerchantVO;
import com.youlai.boot.modules.resource.model.ResourceVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.List;

@Schema(description = "商品详情视图对象")
@Data
@EqualsAndHashCode(callSuper = true)
public class ProductDetailVO extends ProductVO {
    @Schema(description = "商户信息")
    private MerchantVO merchant;

    @Schema(description = "商户评论数量")
    private Integer commentCount;

    @Schema(description = "图片列表")
    private List<ResourceVO> images;

    @Schema(description = "商户联系人列表")
    private List<ContactVO> contacts;

    @Schema(description = "产品价格图片列表")
    private List<ResourceVO> priceImages;

    @Schema(description = "商品收藏")
    private CollectVO collect;
}
